home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group98c.txt / 000011_icon-group-sender _Fri Sep 11 08:22:13 1998.msg < prev    next >
Internet Message Format  |  2000-09-20  |  1KB

  1. Return-Path: <icon-group-sender>
  2. Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
  3.     by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) with SMTP id IAA24299
  4.     for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Fri, 11 Sep 1998 08:22:13 -0700 (MST)
  5. Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
  6.     id AA30712; Fri, 11 Sep 1998 08:21:46 -0700
  7. Date: Thu, 10 Sep 1998 22:06:13 -0400 (EDT)
  8. From: cwills@bix.com
  9. Subject: RE: Context Switching
  10. To: icon-group@optima.CS.Arizona.EDU
  11. Message-Id: <9809102206.memo.65326@BIX.com>
  12. X-Cosy-To: icon-group@optima.CS.Arizona.EDU
  13. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  14. Status: RO
  15.  
  16. I believe that if one has access to a thread model, you could probably
  17. implement the coswitch function.  By careful use of semaphors and blocking
  18. one could perform the switch.  Under OS/2 the CSet (or VisualAge C compiler)
  19. one could use the _beginthread facility.
  20.  
  21. The requirements would be:
  22.   1) all memory allocations from the OS have to be accessible from all
  23.      threads
  24.   2) only one thread can be active at a time
  25.   3) any files (or other system objects) have to be shared across all
  26.      threads
  27.  
  28. Cheyenne
  29.